package com.mapeditor.graph 
{
	import com.mapeditor.math.Vector3;
	import flash.display.Loader;
	import flash.display.Sprite;
	import flash.events.Event;
	import flash.geom.Matrix;
	import flash.net.URLRequest;
	/**
	 * ...
	 * @author Osvaldo Cassaniga Junior
	 */
	public class ShapePolygon extends Sprite
	{
		public var w:Number;
		public var h:Number;
		public var backgroundColor:uint;
		public var borderColor:uint;
		public var alphaShape:Number;
		
		public function ShapePolygon(w:Number, h:Number, borderColor:uint = 0x000000, backgroundColor:uint = 0xcccccc, alpha:Number=1) 
		{
			this.w = w;
			this.h = h;
			this.backgroundColor = backgroundColor;
			this.alphaShape = alpha;
			_drawRect();
			
		}//end of method
		
		private function _drawRect():void
		{
			this.graphics.lineStyle(1,borderColor);
			this.graphics.beginFill(this.backgroundColor, alphaShape);
			this.graphics.drawRect(0, 0, this.w, this.h);
			this.graphics.endFill();
		}
		
	}

}